package net.vanchu.mortgagecalculator.mortgage.data.calculator;

import net.vanchu.mortgagecalculator.mortgage.data.loan.AbsLoan;
import net.vanchu.mortgagecalculator.mortgage.data.loan.WithCommercial;
import net.vanchu.mortgagecalculator.mortgage.data.loan.WithProvidentFund;
import net.vanchu.mortgagecalculator.mortgage.data.repaymentSummary.RepaySummary;

/**
 * Created by Granton on 2016/12/21.
 */
public class MortgageCalculator {

    public static RepaySummary.Single calSingle(AbsLoan absLoan) {
        return SingleCalculator.calRepaySummary(absLoan);
    }

    public static RepaySummary.Mix calMix(AbsLoan absLoan) {
        return MixCalculator.calRepaySummary(absLoan);
    }
}